gtk4.git
11 years agoVisual Studio Builds: "Install" the Stock Icons
Chun-wei Fan [Tue, 17 Jun 2014 09:53:36 +0000 (17:53 +0800)]
Visual Studio Builds: "Install" the Stock Icons

Copy the icons in stock_icons accordingly, so that the built-in icons can
be found by GTK, as it seems that not all of them are built into
gtkbuiltincache.h.

11 years agotestsuite: Add test for latest commit
Benjamin Otte [Mon, 16 Jun 2014 20:20:08 +0000 (22:20 +0200)]
testsuite: Add test for latest commit

11 years agocssprovider: Names starting with -gtk- aren't style props
Benjamin Otte [Mon, 16 Jun 2014 20:13:07 +0000 (22:13 +0200)]
cssprovider: Names starting with -gtk- aren't style props

We want to have the "-gtk-" prefix for our custom CSS properties. But
we also want to parse names starting with a "-" as style properties.
So make sure that "-gtk-" is treated like a normal property and we emit
errors when somebody uses it wrong.

This is to catch errors with people typing
  -gtk-iconsource: none;
instead of the correct
  -gtk-icon-source: none;

11 years agoRevert "gtkbin: replace internal api"
Matthias Clasen [Mon, 16 Jun 2014 21:31:56 +0000 (17:31 -0400)]
Revert "gtkbin: replace internal api"

This reverts commit 0f4751c08e22a4f45d58e2368e4ae82df407d330.

This causes warnings from the notebook and combobox code.

11 years agoUpdated POTFILES.skip
Piotr Drąg [Mon, 16 Jun 2014 20:12:39 +0000 (22:12 +0200)]
Updated POTFILES.skip

11 years agomenu binding: emit submenu close after activate
Ryan Lortie [Mon, 16 Jun 2014 18:26:21 +0000 (14:26 -0400)]
menu binding: emit submenu close after activate

We want to make sure that the submenu action is changed back to FALSE
_after_ the menu item has been activated.  This prevents the menu
teardown handler from deleting the menu item before it can be activated.

Unfortunately, GtkMenuShell emits "hide" before the item activation.
This is probably done to prevent the application from doing things like
showing dialogs when the menu is still holding the grab.

In the case where we are doing an activate, set a boolean flag on each
of the open menus (following the parent stack) indicating that we'll be
emitting another signal soon (selection done).  If that flag is set, we
defer the setting of the submenu action until we receive the second
signal.

https://bugzilla.gnome.org/show_bug.cgi?id=729820

11 years agoMakefile: Add a few more cleanfile / ignore rules
Jasper St. Pierre [Mon, 16 Jun 2014 17:08:48 +0000 (13:08 -0400)]
Makefile: Add a few more cleanfile / ignore rules

11 years agoMakefile: Add gtk.gresource.xml to gitignore
Jasper St. Pierre [Mon, 16 Jun 2014 17:04:30 +0000 (13:04 -0400)]
Makefile: Add gtk.gresource.xml to gitignore

11 years agoAdwaita: list-row styling
Lapo Calamandrei [Mon, 16 Jun 2014 17:57:56 +0000 (19:57 +0200)]
Adwaita: list-row styling

11 years agotestsuite: Remove a test
Benjamin Otte [Fri, 13 Jun 2014 19:19:35 +0000 (21:19 +0200)]
testsuite: Remove a test

That test is not working anymore by design since commit 57c4f01e.

It was introduced pre-3.0.0 in commit 12d6b588 and the feature was never
utilized. So it seems safe to just remove the test.

11 years agocolorswatch: handle clip for box-shadow
Benjamin Otte [Thu, 12 Jun 2014 12:39:12 +0000 (14:39 +0200)]
colorswatch: handle clip for box-shadow

11 years agoAdwaita: fix a typo
Lapo Calamandrei [Mon, 16 Jun 2014 15:14:20 +0000 (17:14 +0200)]
Adwaita: fix a typo

11 years agoAdwaita: GtkPaned separator invisible border shrinking
Lapo Calamandrei [Mon, 16 Jun 2014 15:12:03 +0000 (17:12 +0200)]
Adwaita: GtkPaned separator invisible border shrinking

11 years agoAdwaita: fix column-header backdrop state
Lapo Calamandrei [Mon, 16 Jun 2014 15:07:27 +0000 (17:07 +0200)]
Adwaita: fix column-header backdrop state

11 years agogtkicontheme: Fix a missing case where we forget to set is_svg
Jasper St. Pierre [Mon, 16 Jun 2014 14:41:35 +0000 (10:41 -0400)]
gtkicontheme: Fix a missing case where we forget to set is_svg

When duplicating the icon_info, we forgot to set is_svg. This meant that
any application that used gtk_icon_info_load_icon_async wouldn't have
is_svg set properly.

This fixes blurry icons in the gnome-shell app picker.

11 years agoutil: Add missing git.mk include
Jasper St. Pierre [Mon, 16 Jun 2014 14:42:22 +0000 (10:42 -0400)]
util: Add missing git.mk include

11 years agoAdwaita: column headers visual simplification
Lapo Calamandrei [Mon, 16 Jun 2014 14:45:24 +0000 (16:45 +0200)]
Adwaita: column headers visual simplification

11 years agoGtkInspector: Use Adwaita by Default on Windows Too
Chun-wei Fan [Mon, 16 Jun 2014 04:07:04 +0000 (12:07 +0800)]
GtkInspector: Use Adwaita by Default on Windows Too

As we are using Adwaita by default on all platforms, do the same for
GtkInspector, to be consistent with the rest of GTK+.

11 years agoTextView: render the background of border windows
Paolo Borelli [Sun, 15 Jun 2014 16:27:52 +0000 (18:27 +0200)]
TextView: render the background of border windows

Set the .top, .left, etc css classes and render the background
of the border windows.
Change the reftest implementation accordingly.

11 years agoAdd a TextView reftests checking border-windows
Paolo Borelli [Sun, 15 Jun 2014 16:11:15 +0000 (18:11 +0200)]
Add a TextView reftests checking border-windows

TextView border windows are internal windows used to draw on the gutter
of the textview (e.g. line numbers). The test uses the gmodule hook to
programmatically draw on the border-windows at each side of the textview
and compares the result with 3x3 grid of labels.

11 years agoTextView margin reftest
Paolo Borelli [Sat, 14 Jun 2014 20:51:13 +0000 (22:51 +0200)]
TextView margin reftest

add a reftest that checks GtkTextView text margin property comparing
with the normal margin added to the widget (they are the same when there
is nothing drawn in the gutter like line numbers etc).

11 years agoDist recently added reftests
Paolo Borelli [Sun, 15 Jun 2014 10:05:40 +0000 (12:05 +0200)]
Dist recently added reftests

11 years agoFix another typo
Kalev Lember [Sun, 15 Jun 2014 09:24:39 +0000 (11:24 +0200)]
Fix another typo

11 years agoFix a typo
Matthias Clasen [Sun, 15 Jun 2014 08:15:32 +0000 (04:15 -0400)]
Fix a typo

11 years agoInstall all icons for installed tests
Matthias Clasen [Sun, 15 Jun 2014 02:52:57 +0000 (22:52 -0400)]
Install all icons for installed tests

Otherwise the icontheme test fails in continuous.

11 years agoRevert "Fixes GtkMenuTrackerItem visible flag reference"
Matthias Clasen [Sun, 15 Jun 2014 01:43:14 +0000 (21:43 -0400)]
Revert "Fixes GtkMenuTrackerItem visible flag reference"

This reverts commit ceed0ee7032810476e1563884a7cb04c8fad8ce8.

11 years agoFixes GtkMenuTrackerItem visible flag reference
Will Greenberg [Mon, 9 Jun 2014 22:22:24 +0000 (15:22 -0700)]
Fixes GtkMenuTrackerItem visible flag reference

Previously GtkMenuTracker tried to access "gtk_menu_tracker_item_get_is_visible",
but the correct getter is "_gtk_menu_tracker_item_is_visible". This commit
corrects this reference

https://bugzilla.gnome.org/show_bug.cgi?id=731430

11 years agogtk-update-icon-cache: Add an --include-image-data option
Matthias Clasen [Sat, 14 Jun 2014 23:30:17 +0000 (19:30 -0400)]
gtk-update-icon-cache: Add an --include-image-data option

Now that we don't include the image data by default anymore,
lets add an option that  does it.

11 years agogtkicontheme: Don't query CONTENT_TYPE to determine svg
Matthias Clasen [Sat, 14 Jun 2014 22:54:24 +0000 (18:54 -0400)]
gtkicontheme: Don't query CONTENT_TYPE to determine svg

We already know based on the suffix of the filename.

https://bugzilla.gnome.org/show_bug.cgi?id=721895

11 years agoupdateiconcache: Don't include image data by default anymore
Jasper St. Pierre [Fri, 10 Jan 2014 17:14:41 +0000 (12:14 -0500)]
updateiconcache: Don't include image data by default anymore

Since large images are in the icon cache, and apps don't tend to use that
many icons anymore, simply don't include image data and instead make apps
load files from disk. Additionally, since they're stored in GdkPixbuf data,
that means that we have to first convert them either to a cairo_surface_t,
which requires converting pixel data to be premulitplied, or an OpenGL
texture, which requires a whole GPU upload anyway.

So, even with the icon cache, the goal of icons through zero-copy, mmap()'d
data from disk just isn't doable with the icon cache format we have. The
icon cache on my disk is nearing 100MB, since we include a bunch of
high-resolution application icons, that I doubt would be used by apps at all.
Removing this inefficient pixel data makes memory usage for all applications
go down, with no speed loss.

The icon cache also, however, has an index of what icons are in each folder,
which prevents a readdir() and allows GTK+ to know what icon is where without
having to do a bunch of stat(); calls. Keeping this data is good for GTK+,
so we should still keep the index.

It doesn't make sense to remove any code for mapping pixel data from the icon
cache. There's a plan in the works to have a symbolic icon cache that does
pixel math on 16x16 icons to prevent slow SVG rendering. 16x16 pixels are
fairly small, and such images are flat colors, which should compress easily,
so the icon cache would be worthwhile here. So let's keep the code around
in preparation for that case.

https://bugzilla.gnome.org/show_bug.cgi?id=721895

11 years agonotebook: set tab position style class on the main frame
Paolo Borelli [Thu, 12 Jun 2014 19:12:18 +0000 (21:12 +0200)]
notebook: set tab position style class on the main frame

We want to have .top etc also on the notebook frame, not only on
the header frame.
The patch includes a reftest by Benjamin.

11 years agoGtkIconTheme: Don't treat svg icons specially
Matthias Clasen [Sat, 14 Jun 2014 15:19:12 +0000 (11:19 -0400)]
GtkIconTheme: Don't treat svg icons specially

This changes makes svg icons go through the same scale calculation
code as png icons. As a consequence, an svg that is put into the
32x32 directory will actually be loaded at size 32, even if it
gets requested at a bigger size. This will let us avoid giant
spinners.

https://bugzilla.gnome.org/show_bug.cgi?id=731658

11 years agoAdd more icontheme tests
Matthias Clasen [Sat, 14 Jun 2014 19:06:57 +0000 (15:06 -0400)]
Add more icontheme tests

This test is focused on svgs, and how we scale them when
loading.

11 years agoAdwaita: try to make scrollbars near paned separator usable.
Lapo Calamandrei [Sat, 14 Jun 2014 17:06:26 +0000 (19:06 +0200)]
Adwaita: try to make scrollbars near paned separator usable.

11 years agoRemove duplicate lines in Azerbaijani translation headers
Piotr Drąg [Sat, 14 Jun 2014 14:46:06 +0000 (16:46 +0200)]
Remove duplicate lines in Azerbaijani translation headers

11 years agoAdwaita: comment added
Lapo Calamandrei [Sat, 14 Jun 2014 13:37:36 +0000 (15:37 +0200)]
Adwaita: comment added

11 years agoAdwaita: fix GtkScale outline offset and radius
Lapo Calamandrei [Sat, 14 Jun 2014 13:31:05 +0000 (15:31 +0200)]
Adwaita: fix GtkScale outline offset and radius

11 years agoAdwaita: Gtkscale
Lapo Calamandrei [Sat, 14 Jun 2014 12:49:20 +0000 (14:49 +0200)]
Adwaita: Gtkscale

- added slider assets for scales with marks
- experimental touch friendly fine-tune mode, grow the trough istead
  of shrinking the slider

11 years agoAdwaita: drop references to render-borders.sh/borders.txt
Rico Tzschichholz [Sat, 14 Jun 2014 11:13:29 +0000 (13:13 +0200)]
Adwaita: drop references to render-borders.sh/borders.txt

They were dropped with 82b12328987425a2c7342e259c9147df3787bdb9

11 years agoAdwaita: noticiable scale slider active state for the dark variant
Lapo Calamandrei [Sat, 14 Jun 2014 09:30:22 +0000 (11:30 +0200)]
Adwaita: noticiable scale slider active state for the dark variant

11 years agoAdwaita: include missing assets
Lapo Calamandrei [Sat, 14 Jun 2014 09:01:31 +0000 (11:01 +0200)]
Adwaita: include missing assets

11 years agoAdwaita: darker base color for the dark variant
Lapo Calamandrei [Sat, 14 Jun 2014 09:00:33 +0000 (11:00 +0200)]
Adwaita: darker base color for the dark variant

11 years agoAdwaita: dark var backdrop insensitive fixes
Lapo Calamandrei [Sat, 14 Jun 2014 08:48:28 +0000 (10:48 +0200)]
Adwaita: dark var backdrop insensitive fixes

Consistent backdrop insensitive state for dark variant GtkScale and GtkSwitch

11 years agoAdwaita: GtkScale
Lapo Calamandrei [Sat, 14 Jun 2014 08:19:15 +0000 (10:19 +0200)]
Adwaita: GtkScale

slider :hover state added

11 years agoAdwaita: sidebar separator and selected item backdrop fix
Lapo Calamandrei [Sat, 14 Jun 2014 07:00:21 +0000 (09:00 +0200)]
Adwaita: sidebar separator and selected item backdrop fix

11 years agoAdwaita: added a missing border to GtkFileChooser
Lapo Calamandrei [Sat, 14 Jun 2014 06:45:55 +0000 (08:45 +0200)]
Adwaita: added a missing border to GtkFileChooser

11 years agoAdwaita: better tab close button
Lapo Calamandrei [Sat, 14 Jun 2014 06:42:12 +0000 (08:42 +0200)]
Adwaita: better tab close button

11 years agoAdwaita: remove old cruft not used anymore
Lapo Calamandrei [Sat, 14 Jun 2014 06:31:36 +0000 (08:31 +0200)]
Adwaita: remove old cruft not used anymore

11 years agocheck and radio assets refresh
Lapo Calamandrei [Sat, 14 Jun 2014 06:29:11 +0000 (08:29 +0200)]
check and radio assets refresh

11 years agoscrolledwindow: update GtkPolicyType docs
Stefan Sauer [Fri, 13 Jun 2014 17:04:39 +0000 (19:04 +0200)]
scrolledwindow: update GtkPolicyType docs

The policy is not determining the visibility of the scrollbars anymore, but the
how the size is to be computed to achive the selected visibility.

11 years agogtkbin: replace internal api
Stefan Sauer [Wed, 4 Jun 2014 19:23:01 +0000 (21:23 +0200)]
gtkbin: replace internal api

11 years agoinspector: Use Adwaita as default theme
Matthias Clasen [Sat, 14 Jun 2014 04:15:09 +0000 (00:15 -0400)]
inspector: Use Adwaita as default theme

11 years agoUse Adwaita on Windows too
Matthias Clasen [Fri, 13 Jun 2014 20:49:59 +0000 (16:49 -0400)]
Use Adwaita on Windows too

Having the same, usable, default appearance acroll platforms
trumps having a more-or-less working native theme. The default
will be Adwaita on all platforms. The native ms-windows theme
is of course still available.

11 years agoAdwaita: bring back the extra indirection
Matthias Clasen [Fri, 13 Jun 2014 18:42:38 +0000 (14:42 -0400)]
Adwaita: bring back the extra indirection

Without this, we are missing the 'Adwaita' component in the
path when resolving relative resources, and none of the assets
are found.

11 years agoTry to fix the continuous build
Matthias Clasen [Fri, 13 Jun 2014 18:16:37 +0000 (14:16 -0400)]
Try to fix the continuous build

Making gtk.gresource.xml generated was causing a problem for
srcdir!=builddir builds from git. Builds from tarballs are
not affected, because the tarball contains the generated file.

11 years agoAdd some EXEEXT decorations back
Matthias Clasen [Fri, 13 Jun 2014 18:03:52 +0000 (14:03 -0400)]
Add some EXEEXT decorations back

Might fix
https://bugzilla.gnome.org/show_bug.cgi?id=731602

11 years agoUse Adwaita as the default theme
Matthias Clasen [Fri, 13 Jun 2014 14:37:29 +0000 (10:37 -0400)]
Use Adwaita as the default theme

This ensures that GTK+ applications have a high-quality theme on
all platforms, and look consistent.

11 years agoInclude the Adwaita theme
Matthias Clasen [Fri, 13 Jun 2014 14:32:44 +0000 (10:32 -0400)]
Include the Adwaita theme

This adds the resources for the Adwaita theme, and includes them
in libgtk, on all platforms.

11 years agoDon't include the win32 theme on Linux
Matthias Clasen [Fri, 13 Jun 2014 14:30:36 +0000 (10:30 -0400)]
Don't include the win32 theme on Linux

No need to carry around these resources when we are not
going to use them.

11 years agoGenerate gtk.gresource.xml
Matthias Clasen [Fri, 13 Jun 2014 14:24:30 +0000 (10:24 -0400)]
Generate gtk.gresource.xml

This will help when including Adwaita. It will also let us
drop the win32 theme on Linux, hopefully.

11 years agoRename cursor pngs to their resource name
Matthias Clasen [Fri, 13 Jun 2014 13:28:27 +0000 (09:28 -0400)]
Rename cursor pngs to their resource name

This allows us to get rid of some aliases in the .gresource.xml.

11 years agoMove theme resources into subdirectories
Matthias Clasen [Fri, 13 Jun 2014 12:40:56 +0000 (08:40 -0400)]
Move theme resources into subdirectories

Preparing for Adwaita to come in here.

11 years agoinspector: Allow Escape to cancel picking
Matthias Clasen [Fri, 13 Jun 2014 02:29:31 +0000 (22:29 -0400)]
inspector: Allow Escape to cancel picking

11 years agoinspector: Use a better icon for the picker
Matthias Clasen [Fri, 13 Jun 2014 02:00:14 +0000 (22:00 -0400)]
inspector: Use a better icon for the picker

Recommended by Allan Day.

11 years agoTrivial formatting fix
Matthias Clasen [Thu, 12 Jun 2014 22:46:50 +0000 (18:46 -0400)]
Trivial formatting fix

11 years agogesturesingle: Implement GtkGesture::cancel better than GtkEventController:reset
Carlos Garnacho [Thu, 12 Jun 2014 23:08:16 +0000 (01:08 +0200)]
gesturesingle: Implement GtkGesture::cancel better than GtkEventController:reset

The former can be called individually on each sequence, and the latter will
always call the former on all currently active sequences, so only implementing
resetting on cancel() works for both cases. Also, chain up on subclasses
implementing cancel.

This fixes clicking on nautilus' file list after popping up a menu, as broken
grabs are one of those situations where sequences get cancelled individually,
the "current button" wasn't properly reset, and further clicks with button != 3
were ignored.

11 years agotextview: Unobscure the mouse cursor on motion events
Carlos Garnacho [Thu, 12 Jun 2014 21:18:54 +0000 (23:18 +0200)]
textview: Unobscure the mouse cursor on motion events

This used to be done before the gestures port, and was removed
accidentally, so keep the motion_notify_event handler just for
this, and fallback to having those events handled by gestures
too.

11 years agoFix gtk_selection_data_get_data annotations
Dieter Verfaillie [Wed, 11 Jun 2014 20:16:36 +0000 (22:16 +0200)]
Fix gtk_selection_data_get_data annotations

The annotations were intended for the return
value, not the instance argument.

https://bugzilla.gnome.org/show_bug.cgi?id=731299

11 years agodocs: remove mention of old GtkList and GtkCList
Dieter Verfaillie [Sun, 8 Jun 2014 21:39:50 +0000 (23:39 +0200)]
docs: remove mention of old GtkList and GtkCList

Reported by andlabs in irc://irc.gnome.org/gtk+

https://bugzilla.gnome.org/show_bug.cgi?id=731382

11 years agoUpdated Spanish translation
Daniel Mustieles [Thu, 12 Jun 2014 15:53:57 +0000 (17:53 +0200)]
Updated Spanish translation

11 years agoAdd a message-dialog style class
Matthias Clasen [Thu, 12 Jun 2014 13:14:03 +0000 (09:14 -0400)]
Add a message-dialog style class

This helps in separating message dialogs from other dialogs,
theming-wise.

11 years agoAdd GTK_STYLE_CLASS_POPUP to the docs
Matthias Clasen [Thu, 12 Jun 2014 13:09:30 +0000 (09:09 -0400)]
Add GTK_STYLE_CLASS_POPUP to the docs

11 years agoscrolledwindow: Deny scrolling sequences if pressed on the scrollbars
Carlos Garnacho [Thu, 12 Jun 2014 13:17:47 +0000 (15:17 +0200)]
scrolledwindow: Deny scrolling sequences if pressed on the scrollbars

Scrollbars might be a bit too narrow for touch (and generally less useful
besides kinetic scrolling), but those should be functional nevertheless.

11 years agowindow: Only claim a button=1 press sequence when dragging is about to happen
Carlos Garnacho [Thu, 12 Jun 2014 12:15:26 +0000 (14:15 +0200)]
window: Only claim a button=1 press sequence when dragging is about to happen

This way plain clicks can be handled in gtkmain through the usual delivery mechanism,
and get possibly handled too by widgets holding a GTK+ grab. If window dragging is to
be started, the sequence will be claimed (and a grab will happen afterwards), notifying
properly the grabbing widget that event delivery was interrupted.

This makes it possible to dismiss popovers by clicking on window headerbars, while
still making it possible to drag the window with the popover opened.

11 years agowayland: Ensure the touch sequence pointer value is non-null
Sjoerd Simons [Sun, 8 Jun 2014 15:21:14 +0000 (17:21 +0200)]
wayland: Ensure the touch sequence pointer value is non-null

Weston numbers its touch sequences ids starting from 0, thus simply
setting the GtkEvents touch.sequence to the touch id value typically
causes gdk_event_get_event_sequence to return NULL. Unfortunately this
confuses other parts of GDK.

As both weston & mutter keep the sequence id between 0..max_dev_touches
-1 simply use + 1 to keep the id > 0. While this isn't entirely correct
(compositor could send -1 as the touch id), this keeps the touch id in
gtk tied to the touch id from weston which is useful for debugging. A
more thorough solution could be done when it turns out this is an issue
in practise

https://bugzilla.gnome.org/show_bug.cgi?id=731371

11 years agotestsuite: Add a test for symbolic icons in specific sizes
Benjamin Otte [Thu, 12 Jun 2014 10:28:07 +0000 (12:28 +0200)]
testsuite: Add a test for symbolic icons in specific sizes

Check that loading symbolics works, even if the symbolic is only
available in a fixed size.

11 years agowidget-factory: Add some tooltips
Matthias Clasen [Thu, 12 Jun 2014 09:53:31 +0000 (05:53 -0400)]
widget-factory: Add some tooltips

11 years agodocs: fix link to language bindings page
Dieter Verfaillie [Thu, 19 Sep 2013 09:03:52 +0000 (11:03 +0200)]
docs: fix link to language bindings page

Reported on irc://irc.gnome.org/gtk+ by Rena.

https://bugzilla.gnome.org/show_bug.cgi?id=731377

11 years agoDrop GDK_MULTIHEAD_SAFE
Matthias Clasen [Thu, 12 Jun 2014 01:55:15 +0000 (21:55 -0400)]
Drop GDK_MULTIHEAD_SAFE

We don't support multiple screens anymore, so there is no need
for marking API as multihead safe any longer.

11 years agoDeprecate outside-border style properties
Matthias Clasen [Wed, 11 Jun 2014 23:38:22 +0000 (19:38 -0400)]
Deprecate outside-border style properties

These should just be replaced by CSS margins, etc.

11 years agoGtkButton: Don't use a non-zero border by default
Matthias Clasen [Wed, 11 Jun 2014 23:06:36 +0000 (19:06 -0400)]
GtkButton: Don't use a non-zero border by default

The non-zero default default-border was causing buttons to shrink as
the focus moves around them. Themes which want a default-border should
define it explicitly.

11 years agotreeview: Check that :row-activated is only emitted on GDK_BUTTON_PRIMARY
Carlos Garnacho [Wed, 11 Jun 2014 21:18:34 +0000 (23:18 +0200)]
treeview: Check that :row-activated is only emitted on GDK_BUTTON_PRIMARY

It turned out not all code was fully prepared to handle multiple buttons,
this avoids respawning https://bugzilla.gnome.org/show_bug.cgi?id=731020.

11 years agotreeview: Make row area multipress gesture react to all buttons
Carlos Garnacho [Wed, 11 Jun 2014 21:01:31 +0000 (23:01 +0200)]
treeview: Make row area multipress gesture react to all buttons

The code is actually prepared for that, the gesture was initially limited
to only handling GDK_BUTTON_PRIMARY because it only used to handle row
activation.

11 years agotreeview: Remove unused variables from priv struct
Carlos Garnacho [Wed, 11 Jun 2014 14:39:19 +0000 (16:39 +0200)]
treeview: Remove unused variables from priv struct

These variables were last used before moving row activation to being
managed by a gesture.

11 years agotreeview: Move all button press/release management to the multipress gesture
Carlos Garnacho [Wed, 11 Jun 2014 14:29:52 +0000 (16:29 +0200)]
treeview: Move all button press/release management to the multipress gesture

The multipress gesture on the bin window now also does all the business related
to row selection. As row selection and activation can't be easily decoupled, this
fixes certain problems around ::row-activated being emitted on NULL paths.

Fixes https://bugzilla.gnome.org/show_bug.cgi?id=731455 and
https://bugzilla.gnome.org/show_bug.cgi?id=731018

11 years agotreeview: Use drag gesture for rubberband selection/DnD
Carlos Garnacho [Wed, 11 Jun 2014 14:16:16 +0000 (16:16 +0200)]
treeview: Use drag gesture for rubberband selection/DnD

This gesture acts only on events from the bin window, and checks that
either the pressed row is draggable, or the conditions for rubberband
selection apply.

11 years agotreeview: Use gestures for column dragging/resizing
Carlos Garnacho [Wed, 11 Jun 2014 13:52:28 +0000 (15:52 +0200)]
treeview: Use gestures for column dragging/resizing

A multipress gesture takes care of autosizing on double click, and
a drag gesture is used for both column dragging/resizing (only one
can happen at a time).

11 years agotreeviewcolumn: Avoid a device position query
Carlos Garnacho [Wed, 11 Jun 2014 12:37:18 +0000 (14:37 +0200)]
treeviewcolumn: Avoid a device position query

This happens in an event handler, and the button event should be
expected to have the right coordinates on the event window already.

11 years agogesturesingle: Ensure the current button stays set until after the touch/button release
Carlos Garnacho [Wed, 11 Jun 2014 15:34:23 +0000 (17:34 +0200)]
gesturesingle: Ensure the current button stays set until after the touch/button release

This makes gtk_gesture_get_current_button() work properly on GtkGesture::end, and signals
spawn from there on subclasses.

11 years agoGtkPaned: Make sure the raise the handle window above children
Matthias Clasen [Wed, 11 Jun 2014 13:33:30 +0000 (09:33 -0400)]
GtkPaned: Make sure the raise the handle window above children

We need to show child windows and handle in the right order,
otherwise the input-only handle window ends up under the children
where it is useless.

11 years agoGtkTooltip: Ignore shadow when finding widgets
Matthias Clasen [Wed, 11 Jun 2014 04:01:50 +0000 (00:01 -0400)]
GtkTooltip: Ignore shadow when finding widgets

When placing tooltips, the csd shadow will get 'pushed up' and
may end up underneath the pointer. We don't want this to cause
the tooltip to be hidden, because that leads to flickering, so
ignore the shadow when finding the widget under the pointer.

11 years agocsd: Fix non-resizable windows
Matthias Clasen [Wed, 11 Jun 2014 03:58:27 +0000 (23:58 -0400)]
csd: Fix non-resizable windows

For csd override-redirect windows, we don't set up resize handles,
but we were not ignoring the margin in all places, causing some
size calculations to go wrong.

11 years agoDon't mention no longer existing widgets in the docs
Matthias Clasen [Wed, 11 Jun 2014 03:51:48 +0000 (23:51 -0400)]
Don't mention no longer existing widgets in the docs

GtkText, GtkList and GtkCList don't exist anymore.

11 years agostylecontext: Get rid of StyleData struct
Benjamin Otte [Tue, 10 Jun 2014 23:16:48 +0000 (01:16 +0200)]
stylecontext: Get rid of StyleData struct

It's now just a GtkCssComputedValues + refcount. And
GtkCssComputedValues has its own refcount, so use that one instead.

11 years agostylecontext: Move property cache
Benjamin Otte [Tue, 10 Jun 2014 22:30:30 +0000 (00:30 +0200)]
stylecontext: Move property cache

... from per style data to only existing once per style context. This is
technically an API break because it no longer allows getting different
style properties between save()/restore() pairs, but I don't think this
was ever intended to work that way, as the style property API was to be
used and is used via gtk_widget_get_style().

And it simplifies code a lot.

11 years agodocs: Remove unused variable
Benjamin Otte [Tue, 10 Jun 2014 22:30:02 +0000 (00:30 +0200)]
docs: Remove unused variable

11 years agotestsuite: Add missing errors file
Benjamin Otte [Tue, 10 Jun 2014 22:29:00 +0000 (00:29 +0200)]
testsuite: Add missing errors file

The file was forgotten in 98954bd1d1e27e2e8b5181af1752a9e8e107c74c and
caused test failure. Oops.

11 years agostylecontext: Remove state from _peek_style_property()
Benjamin Otte [Tue, 10 Jun 2014 18:18:37 +0000 (20:18 +0200)]
stylecontext: Remove state from _peek_style_property()

It evaluates to "current state" in all cases, so no need to special case
it.

11 years agogtk3-demo: Use monospace font for source code
Matthias Clasen [Tue, 10 Jun 2014 22:47:49 +0000 (18:47 -0400)]
gtk3-demo: Use monospace font for source code

11 years agoGdkDisplay: Remove unused GdkKeyboardGrabInfo struct
Robert Ancell [Mon, 9 Jun 2014 02:17:39 +0000 (14:17 +1200)]
GdkDisplay: Remove unused GdkKeyboardGrabInfo struct

I can't find anything that uses this struct and it seems to be replaced by GdkDeviceGrabInfo